package com.fuyun.microservice.codec.msg;


import com.fuyun.microservice.codec.PacketType;

public class QueryResponseMessage extends Message {

    private static final long serialVersionUID = -7762194632879048169L;

    public QueryResponseMessage(long reqSequenceNo){
        Header header=new Header();
        header.setCommandId(PacketType.QUERYRESPONSE.getCommandId());
        header.setSequenceNo(reqSequenceNo);
        super.setHeader(header);
    }

    private int resultCode;

    private String resultMessage;

    private String resultBody;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultBody() {
        return resultBody;
    }

    public void setResultBody(String resultBody) {
        this.resultBody = resultBody;
    }

    public String getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(String resultMessage) {
        this.resultMessage = resultMessage;
    }

    @Override
    public String toString() {
        return "QueryResponseMessage{" +
                "resultCode=" + resultCode +
                ", resultMessage='" + resultMessage + '\'' +
                ", resultBody='" + resultBody + '\'' +
                '}';
    }
}
